<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var newWin, sohuWin, sinaWin;

			function openWin() {
				newWin = window.open();
				newWin.document.write("往窗口文档写入内容！")
				sohuWin = window.open("http://www.sohu.com");
				//显示地址栏，显示菜单栏，可调节窗口尺寸，显示滚动条，
				//不显示状态栏，显示标题栏，不显示工具栏，窗口宽、高和x、y坐标
				//yes和no分别可以用1和0表示
				sinaWin = window.open("http://www.sina.com.cn", "sina",
					"location=yes, menubar=yes, resizable=yes, scrollbars=yes, status=no, titlebar=yes, toolbar=no, width=400, height=400, left=100, width=100")
				window.open("dom_window_sub_history.html", true);
			}

			function closeWin() {
				newWin.close();
				sohuWin.close();
				sinaWin.close();
			}
		</script>
	</head>

	<body>
		<input type="button" value="openWin" onclick="openWin()" />
		<input type="button" value="closeWin" onclick="closeWin()" />
		<a href="dom_window_sub_history.html" target="_self">打开子页面</a>
	</body>

</html>